/*
Filename:    defines.h
Author:      Erik Öjebo
Date:        2009-01-10
Description: Declares constants and custom structures used by both the
             server and client.
*/

#ifndef DEFINES_H_
#define DEFINES_H_

#define MSG_SIZE 512
#define MAX_USERNAME_SIZE 15
#define TIME_STAMP_LENGTH 11 // '[xx:xx:xx] '

// Structure that holds a message, the username of the sender and a timestamp.
struct ChatMessage
{
    char message[MSG_SIZE];
    char username[MAX_USERNAME_SIZE];
    char timestamp[TIME_STAMP_LENGTH];
};

#endif /* DEFINES_H_ */
